# Divisibility in Z
Definition: Let a,b∈Z, we say that a divides b, when ∃q∈Z:b=aq. Denoted with a∣b. We can also say that b is a multiple of a, or that a is a divisor of b.
The basic properties of the relation of divisibility in the ring of whole numbers are collected in the first theorem.
Theorem 1: For any numbers a,b,c,d∈Z. (Proof & exercises at the end of the note).
- a∣a, 1∣a, (−1)∣a, a∣0.
- a∣b∧b∣c⟹a∣c
- a∣b∧b∣a⟹a=±b
- a∣b∧a∣c⟹a∣b±c∧a∣bd
- ak∣bk for k⩾1 ⟹a∣b.
Theorem 2: a∣b∧b=0⟹∣a∣⩽∣b∣.
Theorem 3: Let ai,xi,bj,yj,c∈Z. Then if
a1x1+a2x2+…+anxn=b1y1+b2y2+…+bmym+c
holds, and ∃d:∀ai,bj:d∣ai∧d∣bi, then d∣c.
Example: We will proof that the number An=52n+1 is, for every natural number n, divisible by 2, but not by 4.
An=(52)n+1=(1+(8)(3))n+1=1+k=1∑n(kn)(8k)(3k)+1=2+k=1∑n(kn)(8k)(3k)
from which 2∣An. If 4∣An then, according to T3, we would have 4∣2. QED.
Let's denote the set of all divisors of a whole number a with D(a). It is trivial that D(0)=Z.
If a,b∈Z then we denote:
D(a,b):=D(a) ∩ D(b)
Note that the set D(a,b) is always not empty ( a∈D(a,b), T1.1 ); Set D(0,0)=Z In all other cases the set D(a,b) is finite ( a=0⟹D(a,b)⊂[ −∣a∣;∣a∣ ], T2 ).
If a2+b2>0 then the biggest element of D(a,b) is the biggest common divisor of a and b.
Theorem 3: (Division with remainder in Z) If a,b∈Z and b=0 then, there exists exactly one pair of numbers q,r∈Z, such that:
a=qb+r∧0⩽r<∣b∣
The number r is a remainder of dividing a by b. The possible remainders of dividing whole numbers by natural number n are numbers:
0,1,2,…,m−1
These numbers are called the Complete residue system modulo m.